package com.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.dto.PageDTO;
import com.domain.dto.permission.AddPermissionDTO;
import com.domain.dto.permission.ModifyPermissionDTO;
import com.domain.dto.permission.PermissionDTO;
import com.domain.query.permission.PermissionQuery;
import com.rbac.pojo.Permission;

import java.util.List;

public interface IPermissionService extends IService<Permission> {
    PageDTO<PermissionDTO> queryPermissionList(PermissionQuery permissionQuery);

    PermissionDTO queryPermissionByPermissionId(Integer permissionId);

    Integer addPermission(AddPermissionDTO addPermissionDTO);

    Integer modifyPermission(ModifyPermissionDTO modifyPermissionDTO);

    Integer removePermission(List<Integer> permissionIds);
}
